import './assets/main.css'
import 'element-plus/theme-chalk/dark/css-vars.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import dataV from '@kjgl77/datav-vue3'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(dataV)
app.use(ElementPlus)

// if (!localStorage.getItem('_token')) {
//   const token = prompt('输入访问密钥')
//   if (token == 'password321') {
//     localStorage.setItem('_token', token)
//     window.location.reload()
//   }
// }

app.mount('#app')
